import { SYS_LOCAL_DIC } from '@/util/SYS_LOCAL_DIC'

export default {
    // maxHeight: 400,
    index: true,
    border: true,
    expand: false,
    menu: false,
    excelBtn: true,
    stripe: false,
    selection: true,
    menuWidth:130,
    // customClass: '',自定义弹出框样式
    menuBtn: true,
    // menuWidth: 100,
    menuAlign: 'center',
    align: 'center',
    searchSize: 'small',
    column: [{
        label: "所属系统",
        prop: "taskGroup",
        width: 100,
        span: 12,
        row: true,
        search: true,
        rules: [{ required: true, message: "请输入所属系统", trigger: "blur" }]
    },
    {
        label: "任务名称",
        prop: "taskName",
        tip: '请输入任务名称',
        width: 130,
        sortable: true,
        search: true,
        addDisplay:false,
        editDisplay:false,
        solt: true,
        placeholder: '请输入任务名称',
        rules: [{ required: true, message: "请输入任务名称", trigger: "blur" }]
    },
    {
        label: "执行类型",
        prop: "taskType",
        width: 100,
        type: "select",
        valueDefault: 'LOCAL',  
        dicData: SYS_LOCAL_DIC.TASK_TYPE,
        rules: [{ required: true, message: "请输入执行方法", trigger: "blur" }]
    },
    {
        label: "执行对象",
        prop: "targetObject",
        tip: '请输入任务名称',
        width: 300,
        sortable: true,
        search: true,
        solt: true,
        placeholder: '请输入执行对象',
        rules: [{ required: true, message: "请输入执行对象", trigger: "blur" }]
    },
    {
        label: "执行方法",
        prop: "targetMethod",
        width: 100,
        row: true,
        rules: [{ required: true, message: "请输入执行方法", trigger: "blur" }]
    },
    {
        label: "任务类型",
        prop: "jobType",
        width: 100,
        type: "select",
        valueDefault: 'statefulJob',  //statefulJob:单行(阻塞)  job:并行(非阻塞)
        dicData: SYS_LOCAL_DIC.TASK_JOB_TYPE,
        rules: [{ required: true, message: "请输入任务类型", trigger: "blur" }]
    },
    {
        label: "执行周期",
        prop: "taskCron",
        span: 24,
        width: 100,
        row: true,
        rules: [{ required: true, message: "请输入执行周期", trigger: "blur" }]
    },
    {
        label: "任务状态",
        prop: "status",
        width: 100,
        addDisplay:false,
        editDisplay:false,
        type: "select",
        valueDefault: 1,
        dicData: SYS_LOCAL_DIC.TASK_RUN_STATUS,
    },
    {
        label: "通知人员",
        prop: "contactName",
        width: 100,
        row: true,
        rules: [{ required: true, message: "请输入执行周期", trigger: "blur" }]
    },
    {
        label: "通知邮箱",
        prop: "contactEmail",
        width: 100,
        row: true,
        rules: [{ required: true, message: "请输入执行周期", trigger: "blur" }]
    },
    {
        label: "任务描述",
        prop: "taskDesc",
        sortable: false,
        type: 'textarea',
        align: "left",
        maxRow: 4,
        minRow: 4,
        span: 24,
        disabled: false,
        addDisabled: false,
        overHidden: true
    },
    ]
};